package cn.edu.sgu.www.pms.dto;

import cn.edu.sgu.www.pms.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class RoleMenuDTO implements Serializable {
    private static final long serialVersionUID = 18L;

    /**
     * 角色ID
     */
    @NotNull(message = "角色" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "角色ID", required = true)
    private Integer roleId;

    /**
     * 菜单ID列表
     */
    @Size(min = 1, message = "菜单ID列表" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "菜单ID列表", required = true)
    private List<String> menuIds;
}